﻿using System;
using System.Collections.Generic;
using System.Linq;


namespace Candy.Web.Model
{
    public static class RoleDefinition
    {
        public const string AUTHENTICATED_ROLE = "AuthenticatedUser";
        //public const string SU_ROLE = "SU";
        //public const string ProjectManager_ROLE = "ProjectManager";

        public const string GUEST_ROLE_TEMPLATE = "{0}_Guest";
        public const string MEMBER_ROLE_TEMPLATE = "{0}_Member";
        public const string OWNER_ROLE_TEMPLATE = "{0}_Owner";

        public static string FormatGuestRole(int projectId)
        {
            return string.Format(GUEST_ROLE_TEMPLATE, projectId);
        }

        public static string FormatMemberRole(int projectId)
        {
            return string.Format(MEMBER_ROLE_TEMPLATE, projectId);
        }

        public static string FormatOwnerRole(int projectId)
        {
            return string.Format(OWNER_ROLE_TEMPLATE, projectId);
        }
    }
}